package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysUserTradingConfig;
import org.dromara.system.domain.common.BasePageReqDTO;

import java.math.BigDecimal;

/**
 * 交易返现配置业务对象 sys_user_trading_config
 *
 * @author Lion Li
 * @date 2025-07-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysUserTradingConfig.class, reverseConvertGenerate = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysUserTradingConfigBo extends BasePageReqDTO {

    /**
     *
     */
    private Long id;

    /**
     *
     */
    private Long userId;

    /**
    *会员配置id
    */
    private Long memberConfigId;

    /**
     * 最小交易金额
     */
    @NotNull(message = "最小交易金额不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal minAmount;

    /**
     * 返现比例 %
     */
    @NotNull(message = "返现比例 %不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal cashBackRate;

    /**
     * 备注
     */
    private String remark;


    private String userName;


}
